package openvote

class Eleitor {
	
	String nome
	String sexo
	String estadoCivil
	String endereco
	Integer cpf
	Integer rg
	Date dataNasc

    static constraints = {
		nome size: 1..50, blank: false, unique: false
		sexo size: 1..1, blank: false, unique: false, inList: ["M","F"]
		estadoCivil size: 1..8, blank: false, unique: false
		endereco size: 1..60, blank: false, unique: false
		cpf size: 1..11, blank: false, unique: true
		rg size: 1..20, blank: false, unique: true
		dataNasc size: 8..8, blank: false, unique: false
    }
}
